package com.neo.office.server.domain.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDate;
import java.util.Date;
import lombok.Data;

@Data
@TableName(value = "t_employee")
@ApiModel(value="Job对象",description = "")
public class Employee implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 员工编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="员工编号")
    private Integer id;

    /**
     * 员工姓名
     */
    @Excel(name = "员工姓名")
    @TableField(value = "name")
    @ApiModelProperty(value="员工姓名")
    private String name;

    /**
     * 性别
     */
    @Excel(name = "性别")
    @TableField(value = "gender")
    @ApiModelProperty(value="性别")
    private String gender;

    /**
     * 出生日期
     */
    @Excel(name = "出生日期",width = 20,format = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    @TableField(value = "birthday")
    @ApiModelProperty(value="出生日期")
    private LocalDate birthday;

    /**
     * 身份证号
     */
    @Excel(name = "身份证号",width = 30)
    @TableField(value = "idCard")
    @ApiModelProperty(value="身份证号")
    private String idCard;

    /**
     * 婚姻状况
     */
    @TableField(value = "wedlock")
    @ApiModelProperty(value="婚姻状况")
    private Object wedlock;

    /**
     * 民族
     */
    @TableField(value = "nationId")
    @ApiModelProperty(value="民族")
    private Integer nationId;

    /**
     * 籍贯
     */
    @Excel(name = "籍贯")
    @TableField(value = "nativePlace")
    @ApiModelProperty(value="籍贯")
    private String nativePlace;

    /**
     * 政治面貌
     */
    @TableField(value = "politicId")
    @ApiModelProperty(value="政治面貌")
    private Integer politicId;

    /**
     * 邮箱
     */
    @Excel(name = "邮箱",width = 30)
    @TableField(value = "email")
    @ApiModelProperty(value="邮箱")
    private String email;

    /**
     * 电话号码
     */
    @Excel(name = "电话号码",width = 15)
    @TableField(value = "phone")
    @ApiModelProperty(value="电话号码")
    private String phone;

    /**
     * 联系地址
     */
    @Excel(name = "联系地址",width = 40)
    @TableField(value = "address")
    @ApiModelProperty(value="联系地址")
    private String address;

    /**
     * 所属部门
     */
    @TableField(value = "departmentId")
    @ApiModelProperty(value="所属部门")
    private Integer departmentId;

    /**
     * 职称ID
     */
    @TableField(value = "jobLevelId")
    @ApiModelProperty(value="职称ID")
    private Integer jobLevelId;

    /**
     * 职位ID
     */
    @TableField(value = "posId")
    @ApiModelProperty(value="职位ID")
    private Integer posId;

    /**
     * 聘用形式
     */
    @Excel(name = "聘用形式")
    @TableField(value = "engageForm")
    @ApiModelProperty(value="聘用形式")
    private String engageForm;

    /**
     * 最高学历
     */
    @Excel(name = "最高学历")
    @TableField(value = "tiptopDegree")
    @ApiModelProperty(value="最高学历")
    private Object tiptopDegree;

    /**
     * 所属专业
     */
    @Excel(name = "所属专业",width = 20)
    @TableField(value = "specialty")
    @ApiModelProperty(value="所属专业")
    private String specialty;

    /**
     * 毕业院校
     */
    @Excel(name = "毕业院校",width = 20)
    @TableField(value = "school")
    @ApiModelProperty(value="毕业院校")
    private String school;

    /**
     * 入职日期
     */
    @Excel(name = "入职日期",width = 20,format = "yyyy-MM-dd")
    @TableField(value = "beginDate")
    @ApiModelProperty(value="入职日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate beginDate;

    /**
     * 在职状态
     */
    @Excel(name = "在职状态")
    @TableField(value = "workState")
    @ApiModelProperty(value="在职状态")
    private Object workState;

    /**
     * 工号
     */
    @Excel(name = "工号")
    @TableField(value = "workID")
    @ApiModelProperty(value="工号")
    private String workID;

    /**
     * 合同期限
     */
    @Excel(name = "合同期限",suffix = "年")
    @TableField(value = "contractTerm")
    @ApiModelProperty(value="合同期限")
    private Double contractTerm;

    /**
     * 转正日期
     */
    @Excel(name = "转正日期",width = 20,format = "yyyy-MM-dd")
    @TableField(value = "conversionTime")
    @ApiModelProperty(value="转正日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate conversionTime;

    /**
     * 离职日期
     */
    @TableField(value = "notWorkDate")
    @ApiModelProperty(value="离职日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate notWorkDate;

    /**
     * 合同起始日期
     */
    @Excel(name = "合同起始日期",width = 20,format = "yyyy-MM-dd")
    @TableField(value = "beginContract")
    @ApiModelProperty(value="合同起始日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate beginContract;

    /**
     * 合同终止日期
     */
    @Excel(name = "合同终止日期",width = 20,format = "yyyy-MM-dd")
    @TableField(value = "endContract")
    @ApiModelProperty(value="合同终止日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "Asia/Shanghai")
    private LocalDate endContract;

    /**
     * 工龄
     */
    @TableField(value = "workAge")
    @ApiModelProperty(value="工龄")
    private Integer workAge;

    /**
     * 工资账套ID
     */
    @TableField(value = "salaryId")
    @ApiModelProperty(value="工资账套ID")
    private Integer salaryId;

    /**
     * ======================================================================
     */

    /**
     * 民族
     */
    @ExcelEntity(name = "民族")
    @ApiModelProperty(value="民族")
    @TableField(exist = false)
    private Nation nation;

    /**
     * 政治面貌
     */
    @ExcelEntity(name = "政治面貌")
    @ApiModelProperty(value="政治面貌")
    @TableField(exist = false)
    private PoliticsStatus politicsStatus;

    /**
     * 部门
     */
    @ExcelEntity(name = "部门")
    @ApiModelProperty(value="部门")
    @TableField(exist = false)
    private Department department;

    /**
     * 职称
     */
    @ExcelEntity(name = "职称")
    @ApiModelProperty(value="职称")
    @TableField(exist = false)
    private Job job;

    /**
     * 职位
     */
    @ExcelEntity(name = "职位")
    @ApiModelProperty(value="职位")
    @TableField(exist = false)
    private Position position;

    /**
     * 工资账套
     */
    @ApiModelProperty(value="工资账套")
    @TableField(exist = false)
    private Salary salary;

}